<!DOCTYPE html>
<html lang="zh-ch">
<head>
	<meta charset='utf-8'>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>CMS Login</title>
	<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="/bootstrap/js/bootstrap.min.js"></script>
	<link rel="stylesheet" type="text/css" href="/bootstrap/css/bootstrap.min.css">
	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	<style type="text/css">
	body
	{
		margin-top: 60px;
	}
	.login{
		padding: 15px;
		background-color: #f5f5f5;
		border-radius: 4px;
	}
	</style>
</head>

<body>
	<div class="container login">
		<div class="row">
			<div class="col-md-4 col-md-offset-4">
				<h1>登录CMS</h1>
			</div>			
		</div>
		
		<div class="row">
			<div class="col-md-4 col-md-offset-4">
				<% if(!operate.success&&operate.msg.length>0) {%>
				<div class="alert alert-danger">
					<a class="close" data-dismiss="alert" href="#">&times;</a><%= operate.msg%>
				</div>
				<% }%>

				<form method="POST" action="" class="form-horizontal" role="form">
					<div class="form-group">
						<label class="col-md-2 control-label" for="name">账号:</label>
						<div class="col-md-10">
							<input type="text" class="form-control" id="name" name="name"
							<% if(loginCookie!=null&&loginCookie.name!=null){ %>
							value="<%= loginCookie.name %>"
							<% } %>>
					    </div>
					</div>

					<div class="form-group">
						<label class="col-md-2 control-label" for="password">密码:</label>
						<div class="col-md-10">
							<input type="password" class="form-control" id="password" name="password"
							<% if(loginCookie!=null&&loginCookie.password!=null){ %>
							value="<%= loginCookie.password %>"
							<% } %>>
						</div>
					</div>

					<div class="form-group">
						<div class="col-md-10 col-md-offset-2">
							<label class="checkbox"><input type="checkbox" name="remember_me"
								<% if(loginCookie!=null&&loginCookie.remember_me!=null&&loginCookie.remember_me==true){ %>
								checked="checked"
								<% } %>>
								记住我
							</label>
						</div>
					</div>

					<div class="form-group">
						<div class="col-md-10 col-md-offset-2">
							<input type="submit" class="btn btn-primary btn-lg btn-block" value="登录">
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>	
</body>
</html>